  /**
   * Generate time : 2016-09-26 9:53:21
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ch.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCHWorkGroup 
 *  
 */
public class ZMCHWorkGroup extends DaoEPBase {

	private String fdKeyId = " ";		
	private String fdMiningId = " ";		/* 矿井ID*/
	private String fdMiningName = " ";		/* 矿井名称*/
	private String fdDepartmentId = " ";		/* 部门ID*/
	private String fdDepartmentName = " ";		/* 部门名称*/
	private Float fdGroupNo = new Float(0);	/* 班组编号*/	
	private String fdGroupName = " ";		/* 班组名称*/
	private String fdType = " ";		/* 班组属性*/
	private String fdIsuseFlag = " ";		/* 是否使用标记*/
	private String fdRemark = " ";		/* 备注*/
	private String fdStatus = " ";		/* 状态*/
	private String fdLeaderId = " ";		/* 班组长ID*/
	private String fdLeader = " ";		/* 班组长*/
	private Long fdMemberNum = new Long(0);	/* 班组人数*/
	private String fdMember = " ";		/* 班组成员*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("矿井ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("部门名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGroupNo");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(8);
	eiColumn.setDescName("班组编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGroupName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("班组名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdType");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("班组属性");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIsuseFlag");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("是否使用标记");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemark");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdLeaderId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("班组长ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdLeader");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("班组长");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMemberNum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("班组人数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMember");
	eiColumn.setFieldLength(250);	
	eiColumn.setDescName("班组成员");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCHWorkGroup() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId 
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdMiningId - 矿井ID
	 * @return the fdMiningId
	 */
	public String getFdMiningId() {
		return this.fdMiningId;
	}
	
	/**
	 * set the fdMiningId - 矿井ID
	 */
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	
	/**
	 * get the fdMiningName - 矿井名称
	 * @return the fdMiningName
	 */
	public String getFdMiningName() {
		return this.fdMiningName;
	}
	
	/**
	 * set the fdMiningName - 矿井名称
	 */
	public void setFdMiningName(String fdMiningName) {
		this.fdMiningName = fdMiningName;
	}
	
	/**
	 * get the fdDepartmentId - 部门ID
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 部门ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	
	/**
	 * get the fdDepartmentName - 部门名称
	 * @return the fdDepartmentName
	 */
	public String getFdDepartmentName() {
		return this.fdDepartmentName;
	}
	
	/**
	 * set the fdDepartmentName - 部门名称
	 */
	public void setFdDepartmentName(String fdDepartmentName) {
		this.fdDepartmentName = fdDepartmentName;
	}
	
	/**
	 * get the fdGroupNo - 班组编号
	 * @return the fdGroupNo
	 */
	public Float getFdGroupNo() {
		return this.fdGroupNo;
	}
	
	/**
	 * set the fdGroupNo - 班组编号
	 */
	public void setFdGroupNo(Float fdGroupNo) {
		this.fdGroupNo = fdGroupNo;
	}
	
	/**
	 * get the fdGroupName - 班组名称
	 * @return the fdGroupName
	 */
	public String getFdGroupName() {
		return this.fdGroupName;
	}
	
	/**
	 * set the fdGroupName - 班组名称
	 */
	public void setFdGroupName(String fdGroupName) {
		this.fdGroupName = fdGroupName;
	}
	
	/**
	 * get the fdType - 班组属性
	 * @return the fdType
	 */
	public String getFdType() {
		return this.fdType;
	}
	
	/**
	 * set the fdType - 班组属性
	 */
	public void setFdType(String fdType) {
		this.fdType = fdType;
	}
	
	/**
	 * get the fdIsuseFlag - 是否使用标记
	 * @return the fdIsuseFlag
	 */
	public String getFdIsuseFlag() {
		return this.fdIsuseFlag;
	}
	
	/**
	 * set the fdIsuseFlag - 是否使用标记
	 */
	public void setFdIsuseFlag(String fdIsuseFlag) {
		this.fdIsuseFlag = fdIsuseFlag;
	}
	
	/**
	 * get the fdRemark - 备注
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}
	
	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}
	
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	/**
	 * get the fdLeaderId - 班组长ID
	 * @return the fdLeaderId
	 */
	public String getFdLeaderId() {
		return this.fdLeaderId;
	}
	
	/**
	 * set the fdLeaderId - 班组长ID
	 */
	public void setFdLeaderId(String fdLeaderId) {
		this.fdLeaderId = fdLeaderId;
	}
	
	/**
	 * get the fdLeader - 班组长
	 * @return the fdLeader
	 */
	public String getFdLeader() {
		return this.fdLeader;
	}
	
	/**
	 * set the fdLeader - 班组长
	 */
	public void setFdLeader(String fdLeader) {
		this.fdLeader = fdLeader;
	}
	
	/**
	 * get the fdMemberNum - 班组人数
	 * @return the fdMemberNum
	 */
	public Long getFdMemberNum() {
		return this.fdMemberNum;
	}
	
	/**
	 * set the fdMemberNum - 班组人数
	 */
	public void setFdMemberNum(Long fdMemberNum) {
		this.fdMemberNum = fdMemberNum;
	}
	
	/**
	 * get the fdMember - 班组成员
	 * @return the fdMember
	 */
	public String getFdMember() {
		return this.fdMember;
	}
	
	/**
	 * set the fdMember - 班组成员
	 */
	public void setFdMember(String fdMember) {
		this.fdMember = fdMember;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
		setFdMiningName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningName")), fdMiningName));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdDepartmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentName")), fdDepartmentName));
		setFdGroupNo(NumberUtils.toFloat(StringUtils.toString(map.get("fdGroupNo")), fdGroupNo));
		setFdGroupName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdGroupName")), fdGroupName));
		setFdType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdType")), fdType));
		setFdIsuseFlag(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsuseFlag")), fdIsuseFlag));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdLeaderId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdLeaderId")), fdLeaderId));
		setFdLeader(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdLeader")), fdLeader));
		setFdMemberNum(NumberUtils.toLong(StringUtils.toString(map.get("fdMemberNum")), fdMemberNum));
		setFdMember(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMember")), fdMember));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			map.put("fdMiningName",StringUtils.toString(fdMiningName, eiMetadata.getMeta("fdMiningName")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdDepartmentName",StringUtils.toString(fdDepartmentName, eiMetadata.getMeta("fdDepartmentName")));	
			map.put("fdGroupNo",StringUtils.toString(fdGroupNo, eiMetadata.getMeta("fdGroupNo")));	
			map.put("fdGroupName",StringUtils.toString(fdGroupName, eiMetadata.getMeta("fdGroupName")));	
			map.put("fdType",StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));	
			map.put("fdIsuseFlag",StringUtils.toString(fdIsuseFlag, eiMetadata.getMeta("fdIsuseFlag")));	
			map.put("fdRemark",StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdLeaderId",StringUtils.toString(fdLeaderId, eiMetadata.getMeta("fdLeaderId")));	
			map.put("fdLeader",StringUtils.toString(fdLeader, eiMetadata.getMeta("fdLeader")));	
			map.put("fdMemberNum",StringUtils.toString(fdMemberNum, eiMetadata.getMeta("fdMemberNum")));	
			map.put("fdMember",StringUtils.toString(fdMember, eiMetadata.getMeta("fdMember")));	
			
		return map;
	
	}
}